package com.lagou.session;

import com.lagou.bean.Configuration;
import com.lagou.bean.MapperStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {
    <E> List<E> query(Configuration conf, MapperStatement stmt, Object[] params) throws Exception ;
    public void close() throws SQLException;
    int update(Configuration conf, MapperStatement stmt, Object... params) throws Exception;
}
